package com.ruoyi.machine.base.accessory.mapper;

import com.ruoyi.machine.base.accessory.domain.Accessory;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 附属设备清单表
 * 数据层
 */
@Mapper
public interface AccessoryMapper {
    /**
     * 查找附属设备清单
     * @param accessory
     * @return
     */
    public List<Accessory> selectAccessoryList(Accessory accessory);

    /**
     * 根据Id查找附属设备
     * @param accessoryId
     * @return
     */
    public Accessory selectAccessoryById(String accessoryId);

    /**
     * 添加附属设备
     * @param accessory
     * @return
     */
    public int insertAccessory(Accessory accessory);

    /**
     * 更新附属设备
     * @param accessory
     * @return
     */
    public int updateAccessory(Accessory accessory);

    /**
     * 删除附属设备
     * @param accessory
     * @return
     */
    public int deleteAccessory(Accessory accessory);
}
